package com.fresh.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;

/**
 * 商品类别
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class FreshCategory implements Serializable {

  private Integer id;
  private String name;
  private Integer pid;
  private String status;

  @TableField(exist = false)
  private List<FreshCategory> categories;

}
